<?php
namespace Admin\Controller;
use Admin\Model\SystemModel;
use Common\Common\CommonController;

class WxController  extends  CommonController{
    public function index(){
        if(IS_POST){
            $_POST['id']=2;
            $data=I('post.');
            $this->add((new SystemModel()),$data);
        }
        //读出旧数据
        $wechat=M('system')->find(2);
        $this->assign('wechat',$wechat['svalue']);
        $this->display();
    }
}